cmake_minimum_required(VERSION 3.15.0)

project(fxcc)

set(CMAKE_CXX_STANDARD 17)

message("Build CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR} ")
include_directories(${CMAKE_SOURCE_DIR})

# include_directories()
include(FetchContent)

# FetchContent_Declare(
#   imgui
#   GIT_REPOSITORY git@gitee.com:zhouxs1023/imgui.git
#   GIT_TAG docking   
# )

# FetchContent_MakeAvailable(imgui)

FetchContent_Declare(
  stb
  GIT_REPOSITORY git@gitee.com:ddaren/stb.git
)

FetchContent_MakeAvailable(stb)

include_directories(${stb_SOURCE_DIR})

# FetchContent_Declare(
#   assimp
#   GIT_REPOSITORY git@gitee.com:github-transport/assimp.git
#   GIT_TAG v5.2.0   

# )

# FetchContent_MakeAvailable(assimp)


add_subdirectory(core)
add_subdirectory(platform)

add_subdirectory(audio)

set(FXCC_BUILD_GRAPH_GLFW_OPENGL3 ON)
add_subdirectory(graph)


# if(UNIX)
# set(DEP_PATH /usr/local)
# endif()

# set(CMAKE_INSTALL_INCLUDEDIR ${DEP_PATH}/include)
# set(CMAKE_INSTALL_LIBDIR ${DEP_PATH}/lib)

# install(TARGETS web
#         ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )

# install(DIRECTORY include
#         DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})



# add_subdirectory(test)